//通办清单梳理的js api
import request from "@/utils/request";

/**
 * 查询清单列表分页数据
 * @param {*} params
 */
export function queryHotPages(params) {
  return request({
    url:
      process.env.VUE_APP_KSTB_ROUTE_PATH +
      "/yxpz/handleDetailList/queryHotPages",
    method: "get",
    params: params
  });
}

/**
 * 更具id查询清单数据对象
 * @param {*} id
 */
export function getById(id) {
  return request({
    url:
      process.env.VUE_APP_KSTB_ROUTE_PATH +
      `/yxpz/handleDetailList/getById/${id}`,
    method: "post",
    headers: {
      "Content-Type": "application/json;charset=UTF-8"
    }
  });
}

/**
 * 批量设置热门服务
 * @param {*} params
 */
export function batchSetHot(ids) {
  return request({
    url:
      process.env.VUE_APP_KSTB_ROUTE_PATH +
      "/infoManage/handleHotSetService/batchSetHot",
    method: "get",
    params: {
      ids
    }
  });
}

/**
 * 批量取消热门服务
 * @param {*} params
 */
export function batchUnSetHot(ids) {
  return request({
    url:
      process.env.VUE_APP_KSTB_ROUTE_PATH +
      "/infoManage/handleHotSetService/batchUnSetHot",
    method: "get",
    params: {
      ids
    }
  });
}
